'use strict';

function collect_all_even(collection) {
  var result = [];
    for(var i=0;i<collection.length;i++){
        if(collection[i] % 2 == 0){
            result.push(collection[i]);
        }
    }
    return result;
}
module.exports = collect_all_even;
